<template>
  <h1>父组件</h1>
  <!-- <input type="text" :value="username" @input="username = $event.target.value"> -->
  <input type="text" :value="username" @input="username = (<HTMLInputElement>$event.target).value">
  <input type="text" :value="username" @input="username = ($event.target as HTMLInputElement).value">
</template>

<script setup lang="ts" name="Father">
import { ref, type InputTypeHTMLAttribute } from 'vue';

let username = ref('zhangsan');




</script>
